package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.app.FriendshipLink;
import com.example.rbacmanage.service.app.FriendshipLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/app/friendshipLink")
public class AppFriendshipLinkController {

    @Autowired
    private FriendshipLinkService friendshipLinkService;

    @GetMapping("/list")
    public Result list(FriendshipLink friendshipLink){
        return Result.success(friendshipLinkService.getAll(friendshipLink));
    }

}
